package com.cloud.product.service.impl;

import com.cloud.product.bean.Product;
import com.cloud.product.service.ProductService;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.concurrent.TimeUnit;

/**
 * @author lx
 * @date 2025/11/10
 * @Description
 */
@Service
public class ProductServiceImpl implements ProductService {
    @Override
    public Product getProduct(Long id) {
//        try {
//            TimeUnit.SECONDS.sleep(100);
//        } catch (InterruptedException e) {
//            throw new RuntimeException(e);
//        }
        return new Product(id, "productName", new BigDecimal("10.00"));
    }
}
